﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Account.aspx.cs" Inherits="Account" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
    <!--
    var x=1;
    var y=1;
    var z=1;
    
    
    function show1()
    {
    if((x%2)==1)
    {
        document.getElementById("personal").style.display="none";
        document.getElementById("lbl3").style.color="blue";
        x++;
    }
    else{
        document.getElementById("personal").style.display="block";
        document.getElementById("lbl3").style.color="black";
        x++;
    }
    }
    function show2()
    {
    if((y%2)==0)
    {
    document.getElementById("password").style.display="block";
    document.getElementById("lbl1").style.color="black";
    y++;
    }
    else{
    document.getElementById("password").style.display="none";
    document.getElementById("lbl1").style.color="blue";
    y++;
    }
    }
    function show3()
    {
    if((z%2)==0)
    {
    document.getElementById("orders").style.display="block";
    document.getElementById("lbl2").style.color="black";
    z++;
    }
    else
    {
    document.getElementById("orders").style.display="none";
    document.getElementById("lbl2").style.color="blue";
    z++;
    }
    }
    -->
    </script>

    <div class="borderAc">
        <div id="top" align="center" style="width: 750px; padding-top: 10px;">
            Xin Chào, Bạn
            <asp:Label ID="lblName" runat="server"></asp:Label>
        </div>
        <div style="width: 750px;">
            <div style="text-align: left; padding-bottom: 5px; background-color: #cccccc; border-top: solid 1px #3b3b3b;
                border-bottom: solid 1px #3b3b3b;">
                &nbsp;<label id="lbl3" onclick="show1()">Thông Tin Cá Nhân</label>
            </div>
            <div id="personal">
                <div style="vertical-align: top; padding-top: 7px;">
                    <br />
                    &nbsp;&nbsp; Họ và Tên:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp
                    <asp:TextBox ID="txtName" runat="server" MaxLength="50"></asp:TextBox>
                    &nbsp;&nbsp;<asp:Label ID="lblNotNull" runat="server" Text="Bạn hãy nhập vào tên của bạn"
                        Visible="false" CssClass="valText" ForeColor="Red"></asp:Label>
                    <br />
                    <br />
                    <br />
                    &nbsp;&nbsp; Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtMail" runat="server" Width="240px" MaxLength="50"></asp:TextBox>
                    &nbsp; &nbsp<asp:Image ID="CanUse" runat="server" Width="20px" Height="20px" ImageUrl="~/Pictures/ok.gif"
                        Visible="false" />
                    &nbsp; &nbsp
                    <asp:Label ID="lblNote" runat="server" CssClass="valText" Visible="false" Text="Địa chỉ Email này đã được sử dụng"
                        ForeColor="red"></asp:Label>
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    &nbsp; &nbsp
                    <asp:Label ID="lblEmailNotNull" CssClass="valText" runat="server" Text="Bạn hãy nhập vào địa chỉ email"
                        Visible="false"></asp:Label>
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lblMailEx" runat="server" CssClass="valText" Text="Địa chỉ Email không hợp lệ"
                        Visible="false"></asp:Label>
                    <br />
                    <br />
                    &nbsp; Số Điện Thoại:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtPhone" runat="server" MaxLength="20"></asp:TextBox>&nbsp;&nbsp;
                    <asp:Label ID="lblNNull" runat="server" Text="Bạn hãy nhập vào số điện thoại của bạn"
                        Visible="false" CssClass="valText" ForeColor="red"></asp:Label>
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lblPhoneEx" runat="server" CssClass="valText" Text="Số điện thoại bạn vừa nhập không đúng"
                        Visible="false"></asp:Label>
                    <br />
                    <br />
                    <br />
                    &nbsp; Địa Chỉ:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtAdd" runat="server" TextMode="MultiLine" Height="58px" Width="351px"
                        MaxLength="100"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;
                </div>
                <div style="text-align: center;">
                    <asp:Label ID="lblError" runat="server" CssClass="valText"></asp:Label>
                </div>
                <div style="text-align: center; padding-top: 10px; margin-bottom: 7px;">
                    <asp:Button ID="Edit" runat="server" Text="Thay Đổi" OnClick="Edit_Click" />
                </div>
            </div>
        </div>
        <div style="width: 750px; margin-top: 5px;">
            <div style="text-align: left; background-color: #cccccc; padding-bottom: 5px; border-top: solid 1px #3b3b3b;
                border-bottom: solid 1px #3b3b3b;">
                &nbsp;<label id="lbl1" onclick="show2()">Thay Đổi Mật Khẩu</label>
            </div>
            <div id="password">
                <div style="vertical-align: top; padding-top: 10px;">
                    &nbsp; Mật Khẩu Mới:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtnewPW" runat="server" TextMode="Password" MaxLength="50"></asp:TextBox>
                    &nbsp;
                    <asp:Label ID="Label3" runat="server" Text="Bạn hãy nhập mật khẩu mới" CssClass="valText"
                        Visible="false"></asp:Label>
                    <br />
                    <br />
                    <br />
                    &nbsp; Mật Khẩu Hiện Tại:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtCurPW" runat="server" TextMode="Password" MaxLength="50"></asp:TextBox>
                    &nbsp;&nbsp;
                    <asp:Label ID="Label1" runat="server" Text="Bạn đã nhập sai mật khẩu. Xin vui lòng nhập lại"
                        CssClass="valText" ForeColor="red" Visible="false"></asp:Label>
                    <br />
                    <br />
                    &nbsp; Nhập Lại Mật Khẩu:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtCurPW2" runat="server" TextMode="Password" MaxLength="50"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;<asp:Label ID="label2" runat="server" Text="Bạn đã nhập sai mật khẩu. Xin vui lòng nhập lại"
                        CssClass="valText" ForeColor="red" Visible="false"></asp:Label>
                </div>
                <div style="text-align: center;">
                    <asp:Label ID="lblError2" runat="server" CssClass="valText"></asp:Label>
                </div>
                <div style="text-align: center; padding-top: 10px; margin-bottom: 7px;">
                    <asp:Button ID="Button1" runat="server" Text="Edit" OnClick="Button1_Click" />
                </div>
            </div>
        </div>
        <div id="bot" style="width: 750px; margin-top: 5px;">
            <div style="text-align: left; background-color: #cccccc; padding-bottom: 5px; border-top: solid 1px #3b3b3b;
                border-bottom: solid 1px #3b3b3b;">
                &nbsp;<label id="lbl2" onclick="show3()">Thông Tin Đơn Hàng</label>
            </div>
            <div id="orders" style="text-align: justify; padding-top: 5px; margin-bottom: 10px;
                margin-left: 7px; margin-right: 7px;">
                <asp:MultiView ID="MutiView1" runat="server">
                    <asp:View ID="view1" runat="server">
                        <asp:GridView ID="GridView1" runat="server" OnSelectedIndexChanged="GridView1_SelectedIndexChanged1"
                            Width="100%" OnSelectedIndexChanging="GridView1_SelectedIndexChanging" OnRowDeleting="GridView1_RowDeleting">
                            <Columns>
                                <asp:CommandField ShowSelectButton="True" />
                                <asp:CommandField ShowDeleteButton="True" />
                            </Columns>
                        </asp:GridView>
                    </asp:View>
                    <asp:View ID="view2" runat="server">
                        <asp:GridView ID="GridView2" runat="server" Width="100%">
                        </asp:GridView>
                        <div style="text-align: center;">
                            <asp:Button ID="btnBack" runat="server" Text="Back" OnClick="btnBack_Click" />
                        </div>
                    </asp:View>
                </asp:MultiView>
            </div>
        </div>
    </div>
</asp:Content>
